//
//  TYZSimpleAlertView.h
//  MetalEquipUnion
//
//  Created by tangbin on 2021/8/15.
//

#import "TYZBaseView.h"

NS_ASSUME_NONNULL_BEGIN

#define kTYZSimpleAlertViewWidth (300)
#define kTYZSimpleAlertViewMinHeight (112)

/// 简单弹窗视图
@interface TYZSimpleAlertView : TYZBaseView

@property (nonatomic, copy) NSString *titleMsg;

@property (nonatomic, strong) UIColor *textColor;

- (instancetype)initWithFrame:(CGRect)frame andTitle:(nullable NSString *)title btnCancelTitle:(nullable NSString *)btnCancelTitle btnSubmitTitle:(nullable NSString *)btnSubmitTitle;

- (void)showWithCompletion:(void(^ _Nullable)(void))completionBlock failed:(void(^ _Nullable)(void))failedBlock;

- (void)hide;

/// 得到视图的高度
/// @param title title description
+ (CGFloat)getAlertViewHeight:(NSString *)title;


@end

NS_ASSUME_NONNULL_END
